﻿@{
    ViewBag.Title = "内容分类";
    Layout = "~/Areas/Admin/Views/Shared/_RightLayout.cshtml";
}

<form id="listForm" method="get" action="/Admin/Subclass/CascadeList?Classid=@Request.QueryString["classid"]">
<div id="toolBar">
    <a class="add" href="/Admin/Subclass/CascadeEdit?Classid=@Request.QueryString["classid"]"><span>
        添加</span></a> <a class="delete"
        href="javascript:void()" rel="/Admin/Subclass/Delete?Classid=@Request.QueryString["classid"]">
            <span>删除</span></a>
</div>
<div id="list">
    <table>
        <tr>
            <th style="width: 25px;" align="center" title="全选/取消">
                <input type="checkbox" id="select_all" onclick="sel_all()" />
            </th>
            <th>
                所属大类
            </th>
            <th>
                简体中文
            </th>
            <th>UrlCode</th>
            <th>
                繁体中文
            </th>
            <th>
                英文
            </th>
            <th>
                图片地址(简体中文)
            </th>
            <th>
                图片地址(繁体中文)
            </th>
            <th>
                图片地址(英文)
            </th>
            @*<th>
                小类自定义地址
            </th>*@
            <th>
                创建者
            </th>
            <th>
                更新者
            </th>
            <th>
                显示顺序
            </th>
            <th style="width: 60px;" align="center">
                操作
            </th>
        </tr>
        @foreach (tb_subclass subclass in ViewBag.Subclasses)
        {
            <tr>
                <td align="center">
                    <input type="checkbox" name="ids" value="@subclass.Id" />
                </td>
                <td>@(CacheHelper<tb_topclass>.GetById(subclass.TopClassId).Name_Zh_cn)
                </td>
                <td>@subclass.Name_Zh_cn
                </td>
                <td>@subclass.UrlCode
                </td>
                <td>@subclass.Name_Zh_tw
                </td>
                <td>@subclass.Name_En_us
                </td>
                <td>@subclass.PicUrl_Zh_cn
                </td>
                <td>@subclass.PicUrl_Zh_tw
                </td>
                <td>@subclass.PicUrl_En_us
                </td>
                @*<td>@subclass.ClassUrl
                </td>*@
                <td>@subclass.CreateBy
                </td>
                <td>@subclass.UpdateBy
                </td>
                <td>@subclass.DisplayOrder
                </td>
                <td>
                    <a href="/Admin/Subclass/CascadeEdit/@subclass.Id?classid=@Request.QueryString["classid"]" title="修改" >
                        修改</a> <a href="/Admin/Subclass/Detail/@subclass.Id" title="查看小类详细信息" >详细</a>
                </td>
            </tr>
        }
    </table>
</div>
</form>
